I have a script that copy-pastes slides from a Presentation A into a Presentation B.
In order to do so, I use PresentationA.getSlides() and PresentationB.appendSlide().
The script works really well but it is unfortunately realy too slow for my use case.
I have made my calculations and I found that I was limited to 200Ko/s when I write into Presentation B (line 9 in the code below).
So for instance if I have 20 Mo to copy paste from Presentation A to Presentation B, it takes about 2 minutes.
Is there a way to increase this limit (200 Ko/s) ? We would need something like 2 Mo/s for our use case.
Here is the code that I use to do so. Any help would be amazing :)
var body = JSON.parse(e.postData.contents);
var ids = body.ids;
var new_presentation = SlidesApp.openById(body.newId);
var slides = []
for(var i in ids) {
slides = slides.concat(SlidesApp.openById(ids[i]).getSlides());
}
for(var s in slides) {
new_presentation.appendSlide(slides[s])
}
Thanks for your help.
Jérémy