sgtcortez / Termsequel

Bringing a portable SQL like syntax to our filesystem.
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

[FEAT]: Only retrieve information with what the user wants #65

Open sgtcortez opened 3 years ago

sgtcortez commented 3 years ago

Contact Details

No response

What is your suggestion?

Nowadays, even if the user wants only the filename, we use library calls, to get: the absolute and relative path, we convert the time from stat to a string to get the last modification, we also get the username from the uid stat column.
This is not cool, because, the user pays with his time, for things that he does not want!

C++ has a nice idea, of:

You only pay for what you use ...

So, if the user wants only the name, and the size, we must not waste his time getting the owner, last modification, absolute and relative path.

sgtcortez commented 3 years ago

For this, we can use bit fields.