lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On 2017-09-28 05:54 PM, Russell Haley wrote:
And yes, Soni, I want whatever nasty thing you can generate. But just
a couple of megs please. :P

I don't know what you're doing, but why not just

t = {}
t[t] = t

or

{(function() local t = {} t[t] = t return t end)()}


Russ

---------- Forwarded message ----------
From: Russell Haley <russ.haley@gmail.com>
Date: Thu, Sep 28, 2017 at 1:51 PM
Subject: Serialized test data in table format?
To: Lua mailing list <lua-l@lists.lua.org>


Hi,

I'm starting some testing on my lua-persist library that serializes
tables into lmdb. I suck at creating test data and keep getting
stalled out on the task. I thought I'd ask if anyone has some
serialized tables they could offer for my testing?

One problem so far is that this thing is blazing fast. I had one set
of data that was around 6 MB and the system didn't even blink. If
anyone can offer 50-100MB of data (or more!) I'd be REALLY grateful.

The code is here: https://github.com/RussellHaley/lua-persist but it's
pretty much a prototype. Check the doc folder for ldocs. I will work
on a dependencies list.

I want to do some testing on the current features and add the indexing
feature. Then I want to open up the api discussion the same as Tobias
did (it's his fault I'm even on this list so I'm allowed to copy him).

Current features;
- open env, create multiple databases(tables)
- Get all, get item, search data content(via lua function)
- Change tracking and commiting.

Still planned
- table data indexes
- add unit tests
- moses integration
- expose cursor library
- expose for loop iterator

Thanks,

Russ


--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.