Patch 1 is fine.

Patch 2: did you try to determine whether to_string() is better than using 
ostringstream<< ?


At least some time ago, performance was better with lexical_cast:
https://www.boost.org/doc/libs/1_49_0/doc/html/boost_lexical_cast/performance.html

JMarc

Here is more recent page:
https://www.boost.org/doc/libs/1_74_0/doc/html/boost_lexical_cast/performance.html

As I checked to_string delegtes real work to vsnprintf (at least on mingw). So it should be similar to the last column result. And looking only to "...->string" lines in table, the performance should be comparable. But I haven't done the benchmarking.

Yuriy
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to