Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Reducing application footprint: large text files

by QM (Parson)
on Mar 01, 2018 at 10:59 UTC ( #1210130=note: print w/replies, xml ) Need Help??

in reply to Reducing application footprint: large text files

These are essentially Perl structures compatible with JSON. A simple idea comes to mind, convert these to JSON, and zip them. (If necessary, you can convert the live structures into JSON and write files.) In the embedded system, you can unzip the data, streaming into a perl script, convert from JSON to Perl structures, and populate Perl vars.

I haven't looked farther than that, but I suspect there is some simple boilerplate to read in a zipped JSON file and get a ref to the structure. The last piece of the puzzle is putting the data into the expected variables (you have shown %my_flds and %my_def).

Quantum Mechanics: The dreams stuff is made of

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1210130]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2021-03-02 21:08 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (63 votes). Check out past polls.