Ticket #78 (assigned enhancement)

Opened 9 years ago

Last modified 6 years ago

Implement a hashing function for get_info information

Reported by: dgollub Owned by: abauer
Priority: lowest Milestone:
Component: OpenSync Version: 0.38
Severity: minor Keywords:
Cc:

Description

  1. Cache the information. Use a make like system where you compare the

timestamp of the script file with the cached data. This doesn't solve the error bit but it saves you the loading of the interpreter.

I also like #4. We could keep the get_info function for scripts as it is at the moment, and just call it if the hash of the script object has changed (we could easily use the exisiting hashtable system of opensync for this). The only difference would be that the first time the script is installed (or altered), the plugin-listing would be slower.

If we provide a utility for rebuilding the cache, it can be run by the installer script for the plugin, so we can avoid the slowdown on the first time. And we may make running this script recommended, but not required, because we will validate the cache when loading the scripts, anyway.

yes. thats a very good idea!

the tool would be very simple to write. The only parameter it would need is the filename of the script plugin. It would the initialize its OSyncEnv with LOAD_PLUGINS = FALSE and load the given plugin using osync_module_load. that would work for both sync plugins and format plugins.

so... what shall it be? 3 or 4?

Change History

comment:1 Changed 8 years ago by cstender

  • Milestone Beta deleted

Milestone Beta deleted

comment:2 Changed 8 years ago by abauer

  • Priority changed from normal to low
  • Status changed from new to assigned
  • Version set to 0.31
  • Type changed from defect to enhancement
  • Severity changed from normal to minor

comment:3 Changed 6 years ago by tuju

  • Priority changed from low to lowest
  • Version changed from 0.31 to 0.38
  • Reporter changed from abauer to dgollub
Note: See TracTickets for help on using tickets.