have ublock origin and noscript installed. tried disabling both.
> firefox console logs
Partitioned cookie or storage access was provided to “https://js.stripe.com/v3/m-outer-3437aaddcdf6922d623e172c2d6f9278.html#url=https%3A%2F%2Ff.repsona.com%2Fp%2Fgantt%2Fnew&title=repsona%20%7C%20Repsona&referrer=&muid=7e4d8017-fe97-49a9-8619-1f1237ad09c195a3bf&sid=b771ac9f-1efa-428b-b040-6bec1886166b4707f2&version=6&preview=false” because it is loaded in the third-party context and dynamic state partitioning is enabled.
Content-Security-Policy: The page’s settings blocked the loading of a resource at data: (“media-src”). m-outer-3437aaddcdf6922d623e172c2d6f9278.html
patchWindow disabled. patchWindow.js:103:13
Content-Security-Policy: The page’s settings observed the loading of a resource at data: (“media-src”). A CSP report is being sent. m-outer-3437aaddcdf6922d623e172c2d6f9278.html
patchWindow disabled. patchWindow.js:103:13
Content-Security-Policy: The page’s settings blocked the loading of a resource at data: (“default-src”). inner.html
Partitioned cookie or storage access was provided to “https://m.stripe.network/inner.html#url=https%3A%2F%2Ff.repsona.com%2Fp%2Fgantt%2Fnew&title=repsona%20%7C%20Repsona&referrer=&muid=7e4d8017-fe97-49a9-8619-1f1237ad09c195a3bf&sid=b771ac9f-1efa-428b-b040-6bec1886166b4707f2&version=6&preview=false” because it is loaded in the third-party context and dynamic state partitioning is enabled.
Cookie “m” will soon be rejected because it is foreign and does not have the “Partitioned“ attribute. 2 6
Cookie “AWSALB” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite socket.io
brave console doesnt even have any logs.
All the network requests are 200 ok.
you can create a perfect hash based on the presence of at least 4 characters. perfect hash is pre calculated based on possible inputs (-99.9 to 99.0 in bytes). the hash is usual byte*seed+hash. "seed" is chosen so that there is no clash (you can find a static seed in a single brute force from 1 to 1m in < 1 min)
I thought the lookup would just be a byte tree not a hash. Wouldn't a hash with it's calculation beat the purpose of being faster than parsing a number?
The idea would be, you have a tree of all values of 0.0 to 99.9 and then just use the bytes to iterate the tree (e.g. in an array) to come up with the int value of e.g. 45.5
parsing a number contains an (addition + multiplication) *(number of digits) for each row. if you do precalculated perfect hash then multiplication for each row can be avoided. ( you anyways need to read each byte)