[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] read-line, etc.
From: |
felix winkelmann |
Subject: |
Re: [Chicken-hackers] [PATCH] read-line, etc. |
Date: |
Thu, 9 Apr 2009 23:54:03 +0200 |
2009/4/9 Jim Ursetto <address@hidden>:
> I'd like to commit the attached patch to SVN HEAD, if it looks good.
>
> 1) Changes getc to getc_unlocked if available. We don't need locked
> IO, and getc_unlocked is typically a macro, unlike getc.
> 2) A static 1024 byte buffer is allocated per port upon the first call
> to read-line, instead of allocating a fresh 256-byte buffer per call.
> This alleviates some GC pressure.
>
> Timing data is attached but here is a summary: it approximately
> doubles the performance of read-line.
>
Thanks, Jim. I'll try this out and apply it, if possible.
cheers,
felix