----boundary-LibPST-iamunique-1764841629_-_-
Content-type: text/plain
> It sure is. Could we work on that together?
> If you do have some time to invest in this, I'd like you to install
> the patch again and then edit Priv/Mod/HostWindows.CloseBuffer.
I've done a little investigating myself. I believe that the
big difference in CPU time is due to the changes made to f.Input
in HostPorts. My 1-second test case called that routine
about 1000 times (!), and I see that you've inserted a
KERNEL32.Sleep call into that procedure. I reworked my code
so that this routine is only called about 100 times, and
the CPU dropped from 28-seconds to 6-seconds -- still way
above the original 1-second though. (I don't want to
call this less frequently than this, because that 1-second
test case could be much longer for real cases)
So the solution from my side would to be call f.Input less
frequently, but then again I don't think f.Input should
be operating so inefficiently...
Marc
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-1764841629_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID4gSXQgc3VyZSBpcy4gQ291bGQgd2Ugd29yayBv
biB0aGF0IHRvZ2V0aGVyP1xwYXINCj4gSWYgeW91IGRvIGhhdmUgc29tZSB0aW1lIHRvIGludmVz
dCBpbiB0aGlzLCBJJ2QgbGlrZSB5b3UgdG8gaW5zdGFsbFxwYXINCj4gdGhlIHBhdGNoIGFnYWlu
IGFuZCB0aGVuIGVkaXQgUHJpdi9Nb2QvSG9z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