Originally it was a cool idea to use BFS attributes to store the unit conversions.
It seemed the BeOS way of doing things. However, in reality does it bring any practical benefits?
Arguments for using a regular file (like TOML):
- Every unit will not have to be stored as a separate file. Otherwise, it might involve a ton of 'stat' or similar syscalls that actually slows things down versus opening just one or two files.
- Storing the units in the source code repository is a bit of hassle because they will need to be compressed and stored as binaries. Every change required will require re-uploading entire binaries (zip file/s) and changes made often will quickly multiply the size of the project.
- Adding or modifying units to the base application (i.e. the source tree) will require a Haiku system or VM.
Arguments for using BFS attributes:
- Units are universal standards and don't change that often.
- A cool way of show casing the BFS capability.
- File size of the zip of all units won't be that large and isn't a great cause for concern in the foreseeable future.
Of course, changing to using a regular file for this requires quite a bit of code change but in the long run I feel it might be the better solution.
Regardless, a lof of changes will be required anyway given we are reviving a dusty relic that has not been maintained for 20 years.
Originally it was a cool idea to use BFS attributes to store the unit conversions.
It seemed the BeOS way of doing things. However, in reality does it bring any practical benefits?
Arguments for using a regular file (like TOML):
Arguments for using BFS attributes:
Of course, changing to using a regular file for this requires quite a bit of code change but in the long run I feel it might be the better solution.
Regardless, a lof of changes will be required anyway given we are reviving a dusty relic that has not been maintained for 20 years.