Hi
as already wrote in some previous post, programming in parallel is more complex and not so easy if you really want to be efficient for the computation time.
In your case, you should separate the works in two main step:
- read the file and find the correspondence between local and global
- use the values of the file
Of course, the first step is done only once at the first pass
This will probably help you to reduce the computation time
Regards