/// <summary> /// Construct the wrapper creating a workset for the number of CPUs multiplied by 4. /// </summary> /// <param name="fileName">Path to the data set file.</param> /// <param name="properties">Comma seperated list of properties to include in the results. /// <param name="cacheSize">The size of the cache to be used with the wrapper</param> /// </param> public PatternWrapper(string fileName, string properties, int cacheSize = 10000) { _provider = new Pattern.Provider(fileName, properties, cacheSize, Environment.ProcessorCount * 4); _fileName = fileName; }
/// <summary> /// Construct the wrapper creating a workset for each CPU available. /// </summary> /// <param name="fileName">Path to the data set file.</param> /// <param name="properties">Comma seperated list of properties to include in the results. /// <param name="size">The size of the cache to be used with the wrapper</param> /// </param> public PatternWrapper(string fileName, string properties, int size = 10000) { _provider = new Pattern.Provider(fileName, properties, size, Environment.ProcessorCount); _httpHeaders = new List<string>(_provider.getHttpHeaders()); _availableProperties = new List<string>(_provider.getAvailableProperties()); }