# Performance When Using 'with' Statement

**URL:** https://forum.kirupa.com/t/performance-when-using-with-statement/273310
**Category:** open source
**Created:** [October 14, 2008, 9:28am UTC](https://forum.kirupa.com/t/performance-when-using-with-statement/273310 "2008-10-14T09:28:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dark\_Viper](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dark_viper/32/3568_2.png) [@Dark\_Viper](https://forum.kirupa.com/u/Dark_Viper)
#### Post date: [October 14, 2008, 9:28am UTC](https://forum.kirupa.com/t/performance-when-using-with-statement/273310/1 "2008-10-14T09:28:15Z")

</div>

Hi,

I knew about the ‘with’ statement ages ago but I’d never considered using it as I like to write out code in full. However I made a test to see whether there are to be any performance gains in using the ‘with’ statement. I thought the fewer reference calls would help but apparently it doesn’t. You can see for yourself here:  
[http://blog.fatal-exception.co.uk/?p=32](http://blog.fatal-exception.co.uk/?p=32)
