------- Comment #7 from jvdelisle at gcc dot gnu dot org 2008-11-21 05:23 ------- >From some experiments I have done, we can make substantial improvement by streamlining next_char. What I have in mind is reading a whole or partial block of a file and returning a pointer. Then advancing forward next char is a matter of incrementing the pointer,or back as in unget_char, decrementing the pointer.
push_char then becomes simply an assignment. This approach would get rid of all the function calls and and do the necessary manipulations with pointer ops and assignments. It will take some careful rework, but I think it can be done. Janne, is this what you had in mind? are you doing this? -- jvdelisle at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jb at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37754