Skip to content

Log #10

@michael105

Description

@michael105

I think I'm going to log here from time to time about the development.
Just now, I'm a bit upset.
This might be funny for most of you.
But I'm really concerned about bloating.
A few bytes might not seem so much.

But .. I added a global structure. Suddenly - even the tiniest "hello world" bloated up to 4k.
And, you can feel the difference, it simply loads a few microseconds longer, when executing.
It's feelable. And, if you think a bit bigger, multiply this with a few billions for a server - this would also count in hard cash.

So. Atm. I'm going to think about it.
There has to be a compromise.
But the last compromise, the global structure, initialized at start -
I believe, it doesn't need to bloat so much.

Maybe something like a lazy initializer would be better.
Sort of mallocing the global structure and buffer,
only when needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    informationallog about the development of minilib. Sometimes personal

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions