boolinq icon indicating copy to clipboard operation
boolinq copied to clipboard

Performance

Open makulov-vlx opened this issue 8 months ago • 1 comments

Turned out to be extremely slow. toStdVector() takes 25 microseconds for an empty vector! Not even talking about reserve() and move(), but the end of iteration is implemented with try catch. It's not how it's supposed to be.

makulov-vlx avatar Apr 19 '25 11:04 makulov-vlx

Latest version of the lib has business logic built on top of try-catch behavior. I don’t really like it anymore, but the code was kinda expressive and compact with this approach.

Reserving is also not possible without extra arguments since those ranges work on top of forward iterators without multi-specialization, which could be a key to more agile implementation.

k06a avatar Apr 19 '25 12:04 k06a