At present, every save call performs an IDB write. This is redundant especially when several writes occur on a same key (layer), where only the last write will be valid. All the write requests will be queued and performed one-by-one, which is time consuming.
Solution: make the write call as a request-check method. When one write call is performing, pend all the requests with a flag, and only keep the last request. (as you cannot halt the currently performing write action) Always perform ONLY the last write request to keep the highest write performance.
At present, every save call performs an IDB write. This is redundant especially when several writes occur on a same key (layer), where only the last write will be valid. All the write requests will be queued and performed one-by-one, which is time consuming.
Solution: make the write call as a request-check method. When one write call is performing, pend all the requests with a flag, and only keep the last request. (as you cannot halt the currently performing write action) Always perform ONLY the last write request to keep the highest write performance.