Poojitha Ale Posted October 3, 2017 Share Posted October 3, 2017 Hello All, Is reading a config File and storing in shared variable to access across multiple jobsa better option or simply reading the config file from each job and using the values better Does this have any difference from performance/memory usage stand point Thanks! Link to comment Share on other sites More sharing options...
Poojitha Ale Posted February 20, 2019 Author Share Posted February 20, 2019 Any comments Link to comment Share on other sites More sharing options...
BWCS Team Posted April 25, 2019 Share Posted April 25, 2019 Storing it in Shared Variable is definitely a better option. When you read file from each job, you have I/O and CPU impact. Unless it is a large file, in which case, it doesn't make sense to read in each job. Once it is in shared variable, it is in memory as an object and the read is much faster. However, ensure that the write to Shared variable is in a critical section group, so multiple processes do not try to update at the same time. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now