How to create IntervalMesh with variable cell spacing

Hello,
I want to create a UnitIntervalMesh but with two different mesh spacings. Such that from x=0 to 0.1 a smaller mesh spacing (0.0001) is used (1000 cells) and for the rest of 0.9 a larger spacing(0.0009) is used.
What is the most efficient way for customized cell spacings such as in this case?
I would really appreciate any guidance!

See for instance: Mesh refinement not working?
You could Also use the mesh editor, see: https://bitbucket.org/fenics-project/dolfin/src/946dbd3e268dc20c64778eb5b734941ca5c343e5/python/test/unit/mesh/test_mesh_editor.py?at=master#test_mesh_editor.py-1,30