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

2025-01-12 ยท 1 year ago

5 Comments โ†“

๐Ÿš€ stack ยท 2025-01-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 ยท 2025-01-13 at 00:55:

Gemipedia is around 9000 lines of C#,

๐Ÿ€ gritty [OP] ยท 2025-01-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 ยท 2025-01-13 at 02:29:

Well, always strip the production binaries

๐Ÿ€ gritty [OP] ยท 2025-01-14 at 02:16:

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