# compression of CZML file

**URL:** https://community.cesium.com/t/compression-of-czml-file/4388
**Category:** CesiumJS
**Created:** [July 18, 2016, 7:02am UTC](https://community.cesium.com/t/compression-of-czml-file/4388 "2016-07-18T07:02:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MP11](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@MP11](https://community.cesium.com/u/MP11)
#### Post date: [July 18, 2016, 7:02am UTC](https://community.cesium.com/t/compression-of-czml-file/4388/1 "2016-07-18T07:02:16Z")

</div>

Hi,

I am loading a dynamically generated czml file (larger than 6MBs) and it takes considerable time to load.

Is there any compression tool/mechanism available for CZML like KMLs can be compressed into KMZs?

---

<div class="post-metadata">

### Author: ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)
#### Post date: [July 18, 2016, 2:41pm UTC](https://community.cesium.com/t/compression-of-czml-file/4388/2 "2016-07-18T14:41:40Z")

</div>

Hello,

Sorry, but I don’t think there is currently support for this. You could zip up the file and add code to unzip it in your application. Cesium uses [zip.js](https://gildas-lormeau.github.io/zip.js/) to unzip KML files.

Best,

Hannah

---

<div class="post-metadata">

### Author: ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)
#### Post date: [July 18, 2016, 2:57pm UTC](https://community.cesium.com/t/compression-of-czml-file/4388/3 "2016-07-18T14:57:59Z")

</div>

CZML compression is “free” if you configure your server to use gzip compression. How this is done is different depending on what server you are using (IIS/Apache/node/etc…).

That being said, are you sure it’s transfer time that is the problem here?

Manually zipping/unzipping is a bad idea and should be avoided. It would actually increase load times in many cases.
