[quickjs-devel] Using "size_t" instead of "int"

  • From: Domingo Alvarez Duarte <mingodad@xxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Tue, 5 May 2020 12:15:49 +0200

Hello !

Today I tried to read a 5GB file to test/compare "Regexp" performance and discovered that there is a hard coded string size limit, I'm on a 64 bit os and have plenty of memory, looking through the code I can see the usage of "int" for sizes instead of "size_t" the later make it easy to change the hard coded string size limit for my use case and probably for others too on 64 bit OSs.

Would be nice to replace the "int" for "size_t" in future releases !

Cheers !


Other related posts: