|
Happened to read article about bGPT/Transformer in sins.com today. Briefly, it is true no need to check byte one by one if, say bind 4 bytes in sequence and index it by a larger number, chr(1)*1000000+chr(2)*10000+chr(3)*100+chr(4). So one may compare 4 bytes every time but remember to extract other strings in between use math and check instr in s2. Any work done upfront will save time later. In fact, the whole string s1 or s2 can be considered as a large number (if resource allows), and loop processes are a bunch of math operations. After all, forget coding and just ask chatGTP to do the dirty work to same time and money. lol |
|