Time decreased in ~85% compared to current Q2A version for add question. The measured seconds values are average values for the live user.
The test site had this structure:
Questions: 470.000
Answers: 2.700.000
Comments: 3.600.000
Current Q2A version(modified by me)
Add a question: ~40 sec <=====
Edit a question: 6 sec
Closing a question: 1
Hiding a question: 1 sec
Reshowing a question: 1 sec
Hiding a answer: 1 sec
Reshowing a answer: 1 sec
Give vote on answer: 4 sec
Select answer: 5 sec
Deselect answer: 5 sec
Current Q2A version(modified by pupi1985)
Add a question: ~5 sec <=====
Edit a question: 4 sec
Closing a question: 0,5 sec
Hiding a question: 1 sec
Reshowing a question: 1 sec
Hiding a answer: 0,5 sec
Reshowing a answer: 0,5 sec
Give vote on answer: 2,5 sec
Select answer: 2 sec
Deselect answer: 1,5 sec
The latest versions of the files I changed are in this link
https://github.com/kksal55/shared
Thank you for your help @pupi1985