Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #3088
| From | Kaz Kylheku <480-992-1380@kylheku.com> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: What does it mean to "move characters" in the lexer? |
| Date | 2022-06-22 01:13 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <22-06-066@comp.compilers> (permalink) |
| References | <22-06-057@comp.compilers> <22-06-058@comp.compilers> <22-06-064@comp.compilers> |
On 2022-06-21, Christopher F Clark <christopher.f.clark@compiler-resources.com> wrote: > While worrying about copying characters around in compilers isn't given > much thought these days, it is very relevant to people implementing > networking software and also those doing hardware accelerators and their > device drivers. Don't write off buffering optimization'sn as yesterday's game just yet; e.g. this could still be relevant to someone needing to parse gigabytes of JSON or XML. Or maybe even just megabytes. I remember reading some article some years ago whereby some Javascript programmer discovered it was faster to read JSON from a file using dedicated JSON routines available in Javascript, than to declare the same syntax in the Javascript program as a literal and let it be scanned along with the program and available to it that way. (I realize there may be other reasons for the performance difference, because JSON isn't Javascript, but likely part of it was that the JS implementation didn't care about being efficient for large amounts of data: the "hot spot" isn't going to be the scanning stage that takes place oncem before the program has a chance to execute any sort of loop.) -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
What does it mean to "move characters" in the lexer? Roger L Costello <costello@mitre.org> - 2022-06-21 10:27 +0000
Re: What does it mean to "move characters" in the lexer? gah4 <gah4@u.washington.edu> - 2022-06-21 10:30 -0700
Re: What does it mean to "move characters" in the lexer? Christopher F Clark <christopher.f.clark@compiler-resources.com> - 2022-06-22 00:44 +0300
Re: What does it mean to "move characters" in the lexer? Kaz Kylheku <480-992-1380@kylheku.com> - 2022-06-22 01:13 +0000
Re: What does it mean to "move characters" in the lexer? Thomas Koenig <tkoenig@netcologne.de> - 2022-06-22 11:45 +0000
Re: What does it mean to "move characters" in the lexer? Kaz Kylheku <480-992-1380@kylheku.com> - 2022-06-22 01:05 +0000
csiph-web