# Multi-Thread Upload/Downlaod

**URL:** <https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911>\
**Category:** Feature requests\
**Created:** [June 23, 2015, 4:36pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911 "2015-06-23T16:36:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Ferguson](https://forums.insynchq.com/user_avatar/forums.insynchq.com/david_ferguson/32/722_2.png) [@David\_Ferguson](https://forums.insynchq.com/u/David_Ferguson)\
**Post date:** [June 23, 2015, 4:36pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/1 "2015-06-23T16:36:29Z")

</div>

Can you add the ability to add multi-threaded upload and download and also set the number of threads?

Kind regards  
David

PS Great software

---

<div class="post-metadata">

**Author:** ![geek\_club](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/g/c89c15/32.png) [@geek\_club](https://forums.insynchq.com/u/geek_club)\
**Post date:** [July 3, 2015, 6:11am UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/2 "2015-07-03T06:11:50Z")

</div>

Would second this. Currently, the upload slows to 10Kb/s when Insync is uploading small files eg php files, since Insync uploads 2 files at a time. If there was a way to set the number of threads, it would speed up the uploading considerably.

---

<div class="post-metadata">

**Author:** ![roald](https://forums.insynchq.com/user_avatar/forums.insynchq.com/roald/32/97_2.png) [@roald](https://forums.insynchq.com/u/roald)\
**Post date:** [July 3, 2015, 7:28am UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/3 "2015-07-03T07:28:29Z")

</div>

I’ll +1 you on this. 😄 Thank you for your support

---

<div class="post-metadata">

**Author:** ![fnkr](https://forums.insynchq.com/user_avatar/forums.insynchq.com/fnkr/32/865_2.png) [@fnkr](https://forums.insynchq.com/u/fnkr)\
**Post date:** [July 29, 2015, 4:49am UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/4 "2015-07-29T04:49:57Z")

</div>

+1

Currently I am uploading ~200.000 small files and it looks like its going to take several days. ☹

---

<div class="post-metadata">

**Author:** ![fnkr](https://forums.insynchq.com/user_avatar/forums.insynchq.com/fnkr/32/865_2.png) [@fnkr](https://forums.insynchq.com/u/fnkr)\
**Post date:** [July 29, 2015, 8:02pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/5 "2015-07-29T20:02:08Z")

</div>

Because the uploading process was painfully slow (less then 70.000 of 200.000 files transferred after more then 24 hours) I decided to do the change myself. Here is how:

1. decompile `/usr/lib/insync/isyncd.deskcore-0.0.0-py2.7.egg/idesksyncer/syncworks.py`:

2. Change the number of threads in `syncworks.py`: replace `size=3` and `size=2` with whatever you want.

3. Restart Insync

The sync is now much faster to me (30 files/min -\> 200 files/min with `size=30` and `size=20`).

---

<div class="post-metadata">

**Author:** ![Joris](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/j/f17d59/32.png) [@Joris](https://forums.insynchq.com/u/Joris)\
**Post date:** [September 5, 2015, 12:32pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/6 "2015-09-05T12:32:24Z")

</div>

Hey,

Can you upload the file online for me, im getting syntax errors all over the place when i try to decompile it ;9

ty

---

<div class="post-metadata">

**Author:** ![fnkr](https://forums.insynchq.com/user_avatar/forums.insynchq.com/fnkr/32/865_2.png) [@fnkr](https://forums.insynchq.com/u/fnkr)\
**Post date:** [September 5, 2015, 1:11pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/7 "2015-09-05T13:11:23Z")

</div>

Due to legal reasons this is probably not a good idea but if you show me what syntax error you get I may be able to fix it for you 🙂

---

<div class="post-metadata">

**Author:** ![Joris1](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/j/67e7ee/32.png) [@Joris1](https://forums.insynchq.com/u/Joris1)\
**Post date:** [September 7, 2015, 7:13am UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/8 "2015-09-07T07:13:05Z")

</div>

I think that the problem is that it fails to decompile.  
Maybe its the decompiler that i use because i cant get uncompyle2 to work ;/

---

<div class="post-metadata">

**Author:** ![fnkr](https://forums.insynchq.com/user_avatar/forums.insynchq.com/fnkr/32/865_2.png) [@fnkr](https://forums.insynchq.com/u/fnkr)\
**Post date:** [September 7, 2015, 7:43am UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/9 "2015-09-07T07:43:01Z")

</div>

What error message did you get?

---

<div class="post-metadata">

**Author:** ![Joris](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/j/f17d59/32.png) [@Joris](https://forums.insynchq.com/u/Joris)\
**Post date:** [September 8, 2015, 5:03pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/10 "2015-09-08T17:03:17Z")

</div>

357 POP\_TOP None

358 LOAD\_GLOBAL ‘gevent’  
361 LOAD\_ATTR ‘sleep’  
364 LOAD\_FAST ‘next\_time’  
367 CALL\_FUNCTION\_1 None  
370 POP\_TOP None  
371 JUMP\_BACK ‘129’  
374 POP\_BLOCK None  
375\_0 COME\_FROM ‘126’

Syntax error at or near `POP\_BLOCK’ token at offset 374

# decompiled 0 files: 0 okay, 1 failed, 0 verify failed

# 2015.09.08 19:02:27 West-Europa (zomertijd)

---

<div class="post-metadata">

**Author:** ![fnkr](https://forums.insynchq.com/user_avatar/forums.insynchq.com/fnkr/32/865_2.png) [@fnkr](https://forums.insynchq.com/u/fnkr)\
**Post date:** [September 9, 2015, 5:51pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/11 "2015-09-09T17:51:06Z")

</div>

Did you use Python 2.7? On Linux? What distribution?

---

<div class="post-metadata">

**Author:** ![Joris1](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/j/67e7ee/32.png) [@Joris1](https://forums.insynchq.com/u/Joris1)\
**Post date:** [September 12, 2015, 10:40am UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/12 "2015-09-12T10:40:17Z")

</div>

Python 2.7 on Windows 10.

---

<div class="post-metadata">

**Author:** ![zsdemi](https://forums.insynchq.com/user_avatar/forums.insynchq.com/zsdemi/32/1048_2.png) [@zsdemi](https://forums.insynchq.com/u/zsdemi)\
**Post date:** [September 18, 2015, 7:18pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/13 "2015-09-18T19:18:29Z")

</div>

+1 This is a must have feature. I have hundreds of files and it takes weeks while InSync uploads everything. It’s very annoying.

Does anybody knows what we need to do to have this feature?

---

<div class="post-metadata">

**Author:** ![Jimmy\_Crespo](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/j/58f4c7/32.png) [@Jimmy\_Crespo](https://forums.insynchq.com/u/Jimmy_Crespo)\
**Post date:** [November 30, 2015, 3:54pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/14 "2015-11-30T15:54:12Z")

</div>

Can you tell me how to do this on a Mac? Thanks!

---

<div class="post-metadata">

**Author:** ![johnRivs](https://forums.insynchq.com/user_avatar/forums.insynchq.com/johnrivs/32/3902_2.png) [@johnRivs](https://forums.insynchq.com/u/johnRivs)\
**Post date:** [December 1, 2015, 1:19am UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/15 "2015-12-01T01:19:41Z")

</div>

100% this. I switched to Insync because as a developer, having exclude rules is HUGE (excluding node\_modules and vendor folders).

Unfortunately, when I started syncing, I found out it’s going very slowly. 2 files at the same time? It’s gonna take ages. Seems to me like uploading multiple files is a very basic feature. Each of those 2 files are going painfully slow, and I still have almost 70.000 more.

Any word from Insync about this?

---

<div class="post-metadata">

**Author:** ![roald](https://forums.insynchq.com/user_avatar/forums.insynchq.com/roald/32/97_2.png) [@roald](https://forums.insynchq.com/u/roald)\
**Post date:** [January 4, 2016, 6:14am UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/16 "2016-01-04T06:14:08Z")

</div>

@johnRivs We are aware of this issue, but our devs is working hard on improving the syncing speed. Syncing is noticeably faster after the initial sync.

Happy New Year 😄

---

<div class="post-metadata">

**Author:** ![Peter](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@Peter](https://forums.insynchq.com/u/Peter)\
**Post date:** [March 2, 2016, 3:38pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/17 "2016-03-02T15:38:18Z")

</div>

When will this feature be available? It takes forever to sync a large amount of files and it only uses a small part of the available bandwidth. (Syncing from Linux with Insync 1.3.6)

---

<div class="post-metadata">

**Author:** ![Peter](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/p/278dde/32.png) [@Peter](https://forums.insynchq.com/u/Peter)\
**Post date:** [March 2, 2016, 4:40pm UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/18 "2016-03-02T16:40:48Z")

</div>

@marte Could someone send me a syncworks.py file with 20 or 30 threads enabled so I can test if download is any faster?

---

<div class="post-metadata">

**Author:** ![marte](https://forums.insynchq.com/user_avatar/forums.insynchq.com/marte/32/40_2.png) [@marte](https://forums.insynchq.com/u/marte)\
**Post date:** [March 4, 2016, 10:22am UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/19 "2016-03-04T10:22:24Z")

</div>

@Peter: we’ll add support for changing it via environment variable / command-line argument on the next release. Thanks for the feedback.

---

<div class="post-metadata">

**Author:** ![Pietz](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/p/da6949/32.png) [@Pietz](https://forums.insynchq.com/u/Pietz)\
**Post date:** [March 5, 2016, 8:52am UTC](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911/20 "2016-03-05T08:52:33Z")

</div>

i agree with the feature request.

another idea is that insync figures out by itself what the best number of parallel transfers is. call it “intelligent multi thread” and make it a major feature. for very small files it would transfer up to something like 20 files, in the middle area maybe 5 parallel connection and for large files it sticks to 2 parallel transfers.

[Next page](https://forums.insynchq.com/t/multi-thread-upload-downlaod/1911.md?page=2)
