Skip to content

Conversation

@Self-Perfection
Copy link
Contributor

There are 2 motives for the change:

  1. Before the change CGP enumerated all rrd files to display graph.php
    or host.php and therefore broke if any single plugin directory lacks
    read permissions.

  2. With active open_basedir PHP option recursive scan becomes really
    slow. Avoiding it gives huge speedup. For example on Core i5 and ~1300
    rrd files:
    graph.php: 907 ms -> 31 ms
    host.php: 1372 ms -> 480 ms

There are 2 motives for the change:

1) Before the change CGP enumerated all rrd files to display graph.php
or host.php and therefore broke if any single plugin directory lacks
read permissions.

2) With active open_basedir PHP option recursive scan becomes really
slow. Avoiding it gives huge speedup. For example on Core i5 and ~1300
rrd files:
graph.php: 907 ms -> 31 ms
host.php: 1372 ms -> 480 ms
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.

1 participant