It depends a lot on what your code is, the number of lines is not really relevant. You can write just a few lines of code that will be very taxing on mIRC's performance. For example, looping over a giant .ini file everytime someone writes anything will be a bad idea
If you have many instances of ON *:TEXT:*:#:{ you probably could have written in it better way. Don't know if that really makes a big difference, though.
I don't think mIRC will drag down your PC. You'd probably need to have A LOT of things loaded into mIRC's memory or your PC would have be very bad for that to happen, but I'm far from an expert on CPU and memory..
If you're very concerned about perfomance, and you need to do more demanding tasks, it's best to write your bot in a real programming language.