in reply to Absolute simplest way to keep a database variable persistent?
Create a long-running perl script that starts up, loads your massive library, then waits for input on STDIN. Devise a simple "protocol" to communicate to the perl API from VBA, then outputs the results to STDOUT. All this in a while(1) loop.
From VBA, when the spreadsheet opens, start up the perl process and get handles on its input and output. Then feed it function calls and read the results.
I have no idea how easy/possible it is to do that in VBA, but it's not unreasonable. You'll also need to be aware of deadlocking issues, etc.
This approach would give you the benefits of a long-running, compile-once perl instance, without the learning curve of apache+modperl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Absolute simplest way to keep a database variable persistent?
by natestraight (Novice) on Oct 09, 2008 at 20:50 UTC | |
by clwolfe (Scribe) on Oct 10, 2008 at 00:01 UTC | |
by natestraight (Novice) on Oct 10, 2008 at 00:10 UTC | |
by clwolfe (Scribe) on Oct 11, 2008 at 03:37 UTC | |
by natestraight (Novice) on Oct 12, 2008 at 13:37 UTC | |
by GrandFather (Saint) on Oct 10, 2008 at 00:24 UTC | |
by natestraight (Novice) on Oct 10, 2008 at 12:11 UTC |