Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to in-memory data #4

Open
bodhi opened this issue Jun 4, 2018 · 1 comment
Open

Convert to in-memory data #4

bodhi opened this issue Jun 4, 2018 · 1 comment
Assignees

Comments

@bodhi
Copy link
Member

bodhi commented Jun 4, 2018

Instead of pulling files from S3, this service should just hold the data in memory. Some suggestions for approaches:

  1. Generate static Go code
  2. Serialised Gob
  3. Serialised protocol buffer

I think the first option is the simplest?

@tnclong
Copy link
Contributor

tnclong commented Jun 4, 2018

Generate static Go code

@bodhi I try to use https://github.com/jteeuwen/go-bindata.

That generate 107MB file in go.

> go-bindata -o jpbindata/bindata.go jp/

> ls -lh
-rw-r--r--  1 **  staff   107M Jun  4 11:37 bindata.go

I try to compile this file and wait a minutes that don't finished.

time go build .

// Ctl-c break the compile
real	1m54.225s
user	0m0.570s
sys	0m0.274s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants