Skip to content

Improve column output performances#625

Open
xdelaruelle wants to merge 1 commit into
envmodules:mainfrom
xdelaruelle:output_compute_grid
Open

Improve column output performances#625
xdelaruelle wants to merge 1 commit into
envmodules:mainfrom
xdelaruelle:output_compute_grid

Conversation

@xdelaruelle
Copy link
Copy Markdown
Collaborator

Improve the performance of the module’s column output by removing the costly optimization that attempts to fit more columns within the available screen width.

As a result in some situations, module list or module avail may now have an output a little less dense. This new grid output is exactly the same as the one from the "ls" command.

Output performances are clearly improved. On "avail4" test case of script/mb utility, a "module avail" over 962 modulefiles takes 47 ms instead of 73 ms (-35% elapsed time).

Closes #622

Improve the performance of the module’s column output by removing the
costly optimization that attempts to fit more columns within the
available screen width.

As a result in some situations, module list or module avail may now have
an output a little less dense. This new grid output is exactly the same
as the one from the "ls" command.

Output performances are clearly improved. On "avail4" test case of
script/mb utility, a "module avail" over 962 modulefiles takes 47 ms
instead of 73 ms (-35% elapsed time).

Closes envmodules#622

Signed-off-by: Xavier Delaruelle <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

module avail O(N²) performance regression in displayElementList column optimizer with large module counts

1 participant