ivakyb / minini

Automatically exported from code.google.com/p/minini
Other
0 stars 0 forks source link

The ini file reading algorithm is N**2 #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.

Create an ini file with a large number of entries (e.g. 10,000)
2.

Use a key iterate function to read all key value pairs

3.

Observe very poor performance

What is the expected output?

You should be able to read 10,000 key value pairs in a few milliseconds.

 What do you see instead?

As written it would take several seconds.

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by vassili....@gmail.com on 10 Jul 2011 at 5:31

GoogleCodeExporter commented 9 years ago
The latest version (1.2) has a function ini_browse() that is specifically made 
to handle this case.

Original comment by thiadmer...@gmail.com on 4 Jan 2012 at 12:27