Performance of Map vs Find()

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

In Eu 3.1 performance tips it states: Euphoria's find() is the fastest way to search for a value in a sequence up to about 50 elements.

How do maps of 4.x compare with this? Do we have any general guidance on fastest way to do "finds" within sequences of given sizes?

In addition, 4.x documentation states that default threshold for small map is 23. Why 23? Just seems to be a strange number..not 20 or 25 but precisely 23. Did testing prove that 23 is optimal and after that large map is faster?

Looking to optimize a program that does lots of sequence finds on variable size sequences..

Help appreciated as always.

Thanks -casey

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

Search



Quick Links

User menu

Not signed in.

Misc Menu