performance optimizations for write speed and fix to recover thread exceeding issue with a configured wait
Merge pull request #103 from hastef88/performance_optimization

performance optimizations for write speed and fix to recover thread exce...