[OT] parsing with sscanf is accidentally quadratic due to strlen

deadalnix deadalnix at gmail.com
Wed Mar 3 12:46:17 UTC 2021


On Wednesday, 3 March 2021 at 09:12:19 UTC, Kagamin wrote:
> Parsers based on sscanf choke on big strings: 
> https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times-by-70/
> Source: 
> https://github.com/chakra-core/ChakraCore/blob/master/pal/src/safecrt/sscanf.c#L47

An interesting follow up:
https://www.mattkeeter.com/blog/2021-03-01-happen/


More information about the Digitalmars-d mailing list