Re: C lib data interconnection and RE: LuaSSL, LuaSocket ?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: C lib data interconnection and RE: LuaSSL, LuaSocket ?
- From: "D Burgess" <dburgess@...>
- Date: 2006年8月16日 01:45:41 +1000
This question does not have an easy answer. For large strings that you
typically have in IO bound server applications, I think C buffers are worth
considering. I guess it depnds on the lifetime of your strings and the
results of your benchmarks. The rule of /make it work first/ (using Lua
strings) and if you need to optimize with C buffers do it when a benchmark
justifies it.
DB
Jerome Vuarand
Related to network I have another question. Are Lua strings well suited to handle arbitrarily long binary data objects ?