You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-22Lines changed: 0 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -296,28 +296,6 @@ const data = await image.readRasters({ pool });
296
296
It is possible to provide a pool size (i.e: number of workers), by default the number
297
297
of available processors is used.
298
298
299
-
Because of the way WebWorker work (pun intended), there is a considerable overhead
300
-
involved when using the `Pool`, as all the data must be copied and cannot be simply be
301
-
shared. But the benefits are two-fold. First: for larger image reads the overall time
302
-
is still likely to be reduced and second: the main thread is relieved which helps to
303
-
uphold responsiveness.
304
-
305
-
If you want to use the Worker Pool in a project built with webpack (ex: VueJS or React) you have to install `threads-plugin` and add the plugin to your `webpack.config.js`:
306
-
```
307
-
npm install -D threads-plugin
308
-
```
309
-
310
-
```javascript
311
-
constThreadsPlugin=require('threads-plugin')
312
-
313
-
module.exports= {
314
-
// ...
315
-
plugins: [
316
-
newThreadsPlugin()
317
-
]
318
-
}
319
-
````
320
-
321
299
### Dealing with visual data
322
300
323
301
The TIFF specification provides various ways to encode visual data. In the
0 commit comments