TUI
This is the most user-friendly mode and it allows to perform many operations interactively and visually.
It is designed to operate on just one file and the functionalities are similar to the ones present in other commands. Being this mode interactive, it allows the user to easily navigate through the contents of the file and perform changes inside the same session.
This is different to other commands as the file has to be fully loaded in memory, so if we are processing very big files we can reach some limitations in the usage of memory and the time required for some operations, so it is advisable to use this mode on medium to small files.
As a reference, here we have the memory footpring for three different file sizes (this will vary on each system, so take it just as a guide)
| Records | File size in bytes | Consumed Memory | Reserved Memory |
|---|---|---|---|
| 6 | 2,358 | 2.5 MB | 14 MB |
| 54,392 | 32,796,381 | 1.2 GB | 1.3 GB |
| 271,952 | 163,981,161 | 5.5 GB | 6.1 GB |
As we can see, the memory usage is pretty linear and from some file sizes the memory usage starts to be between 20 to 25 bytes per record (this is just an estimation as the real memory consumption will depend on the information inside the file)