jonberliner / infiniteLibrary

0 stars 1 forks source link

Maximum book length is... 9 characters :( #5

Open machow opened 8 years ago

machow commented 8 years ago
Number.MAX_SAFE_INTEGER   // 9007199254740991
infLib.generateBook(Number.MAX_SAFE_INTEGER) // " @|.:\@oa"

This seems like a critical issue! Do we know how LoB implements search? It could be helpful. I'm guessing some kind of segmentation shouldn't be too difficult, but we'll need to remap book indexes to something much higher than base 10 (otherwise the book indexes will be more characters than the books).