What would everyone say is a large file for a CGI script? I finished up my newest game in Go, but the file size seems rather large. I used stdlib for everything except sqlite access.

wondering if I should use SCGI to get around load times.

=> Posted in: s/programming | ๐Ÿ€ gritty

Jan 12 ยท 7 days ago

5 Comments โ†“

=> ๐Ÿš€ stack ยท Jan 12 at 03:43:

My CGI scripts are <30Kb.

SpellBinding is 22Kb (without trying to make it small), using kissdb, but with under 1000 players you can just use the file system to keep user session data.

I strongly recommend C for things like this.

But then again, people think I'm nuts.

=> ๐Ÿง‡ Acidus ยท Jan 13 at 00:55:

Gemipedia is around 9000 lines of C#,

=> ๐Ÿ€ gritty [OP] ยท Jan 13 at 02:10:

@Acidus oh wow. do you know the memory load per call?

@stack that's impressive. there are some binary file size reductions i might try for Go.

=> ๐Ÿš€ stack ยท Jan 13 at 02:29:

Well, always strip the production binaries

=> ๐Ÿ€ gritty [OP] ยท Jan 14 at 02:16:

Well, I stripped the production binaries and reduced the file size by like 80%. Much better.

Proxy Information
Original URL
gemini://bbs.geminispace.org/s/programming/23716
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
88.768499 milliseconds
Gemini-to-HTML Time
0.803413 milliseconds

This content has been proxied by September (ba2dc).