Re: Christmas gift - new game

new topic     » goto parent     » topic index » view thread      » older message » newer message

>What algorithm did you use ?
>Or did you make up your own ?
>If so, chances are it can get pretty speed with Euphoria. Most algorithm
use
>some sort of 'I already have this written down somewhere' and need to
'find'
>it. A finding procces can usually be sped up a lot using hash-tables,
>esspecially in Euphoria you can do *that* pretty fast.


And I forgot, one of the biggest bottle necks in Euphoria is IO due to the
conversion of bytes etc to 4-byte machine integers, etc. and the fact that
you have to check if it is -1 every time in your code. Jaquesch Deschenes (I
think I misspelled his name now) had an library for this that might be much
much faster. You can have you code deal 4 bytes being 4-byte machine
integers, and have the library handle the file one big cached block at the
time. I would say, put profile_time on and just see where you the speed is
going to and eh.. where not.

Ralf

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu