Actually, my new version of compiler work directly with tablet I/O of
David without using TabletIterator. Please check in latest code of
compiler (run CompilerImpl for test).
San.
2011/3/19 Constantine Peresypkin <pconst...@gmail.com>:
Also if we develop this idea further we will see that all the code in
opendremel even run outside janino is query-compile-time i.e. the code
runs once per query. And all code that is query-run-time i.e. the code
running per-tablet rather than per-query runs entirely inside janino
executor.
So.... Tableton and dataset API should actually return some
closure-like code pieces rather than actually so any real work on the
caller thread.
The only work done in query-run-time may be mmaping tablet files into RAM.
What you think?
--
Sent from my mobile device
Java direct ByteBuffers are limited to 2Gb, on any platform AFAIK.
On Mar 19, 1:51 pm, Camuel Gilyadov <cam...@gmail.com> wrote:
> Regarding configurable buffer sizes, David, Constantine, et. al.
>
> As far as I know mmap just uses all free memory of OS as buffer-cache for
> mmaping files. There is no way to control it in any sensible manner. Am I
> right?
Therefore if you want to map more you need to wrap them in superclass
that accepts long offsets.
Anyway, just as a hint: I could not allocate even 1024Mb byte buffer
on 4Gb 32bit machine anyway (just tested).