web analytics

More optimization

Written By: - Date published: 1:47 pm, November 16th, 2008 - 14 comments
Categories: admin - Tags:

Sysop

Sysop

I’ve just put another round of optimizations into the system. In this case caching the p-code generated by php into shared memory This should usually result in faster page display where content is changing rapidly. Posts with fast growing comments should get the major benefit from this. This should allow the site to run on its existing hardware for quite a while without the trauma of hardware upgrades.

This should be the last of the back-end optimization updates. The next round of updates will concentrate more on usability.

14 comments on “More optimization”

  1. lprent_test 1

    Test new ajax re-edit plugin copied in ok

    Yep looked like it did. This has had some updates for javascript compatibility that should reduce soem of the issues with it not working on all systems.

    It also fixed a problem with the display of the timeout (however I think we skipped that version)

  2. Anita 2

    Will this stop the funny behaviour of the latest comments bar? Or just help the hardware bear up? 🙂

  3. Anita 3

    I still have re-edit btw.

  4. lprent 4

    Haven’t looked at the comments bar behaviour. I suspect that has something to do with page caching handling when multiple people are updating at the same time. It stores a page copy made by someone else.

    However this p-code caching should in some small measure alleviate this simply because the system doesn’t have to recompile the php. There should be less time for cross-over effects for the pages cache.

    Good to hear about the re-edit. I tested this on my own systems this morning with no effects. But I always get a bit worried about the ajax stuff. It is so susceptible to client side configuration.

    Finally got over my cold (by spending yesterday asleep). I caught the damn thing two days before the election, which made it one of the worst elections ever (even without the result). Now I feel reinvigorated. So it is sunday play-time again.

  5. lprent 5

    It will be a bit slow for 20 minutes or so. Updated the search engine and I’m reindexing it now.

  6. randal 6

    hell yeah lp
    optimisation eh
    I like that
    things here seem to be someones bright idea that is made to work
    if ya get my drift
    nothing is ever followed through on
    put ya left foot in
    take ya right foot out
    but
    now is the time to really scrutinise nationals performance
    make sure there are no changes without a firm theoretical base
    focussing on the money market is not neccessarily the primary objective
    can national really do the right deals to boost the economy without ruining everything else
    are they smart enough
    or just postmodern turkeys
    jet fighter design 1949-2008
    an object lesson in optimisation
    and business capacity
    and orgy of consumption
    that only now shows some signs of abating
    if one looks at the big picture
    so much to do and so little time
    the question is
    how to make the right decisons

    I could start naming names but that comes under looking for business
    and putting companies into play as they say
    we have to do better
    so does national know how to do better or do they only know how to rort the budget
    we shall see

  7. Anita 7

    The comments bar stuff is still happening, right now the top most comment showing on this page is randal’s one on this thread (directly above this). If I look at the main page I can see three comments above randal’s (Ag, Anita, John BT).

    I think you were probably supposed to hold off the cold until 7pm on the 8th. Clinging to ones health while stressed and underslept is traditional IT industry isn’t it? 🙂 Then again, working long last minute days while sick is equally traditional.

    [edit – now I’ve posted the comments bar on this page has caught up. I wonder if the predictable wonkiness is showing the contents of the bar the last time the page was updated by a new comment]

    [edit again – yep that looks likely, the C|T thread page has the most recent comments on that page as the top-most in the comments bar]

  8. randal 8

    anita
    aw shucks
    I can handle that
    being no1all the time is hard
    lol

  9. Scalia 9

    How much did that cost the taxpayer?

    [lprent: Ok – so you have now proven yourself to be an ignorant and particularly stupid fruitloop. You obviously haven’t read the About.

    Tell me, why do you think I do this on a sunday? But of course thinking would probably strain the fruitcake that makes up your (alleged) brain. Adding you to moderation where you can stay until you can prove to me that you’re a human worthy of commenting here.]

  10. Chris S 10

    Careful, Scalia, you keep up those lies and you won’t be posting here much longer.

    If you’re going to keep bringing up thoroughly debunked and disproved rumors, I suggest you keep it for your own blog.

    By the way, National control the treasury benches now… you think they would fund The Standard? Thought not.

  11. lprent 11

    Anita: Yeah I know. Got a bad case of headaches on Wednesday night. Fever on thursday morning. Sucked up the panadol, dressed warm, and stayed home thursday. Got the sore throat friday along with a drippy nose, and had a hacking cough saturday.

    Fortunately all of my major work for the election had been completed on the prior monday. So on saturday all I had to do was monitor the systems running (and they worked perfectly). But going to the election do on Saturday night to see Helen resign was not a good idea. Suffered the cold at work for all of last week to get the project out of the way.

    I hate summer colds…

  12. lprent 12

    tev reported this

    Sorry to be off topic here but I can’t link to the “first cut” post I get a lot of garbage.

    [lprent: Interesting. It looks like I’ve found the source of the KB garbage problem. No – not the posted content, the occasional flurry of binary it sends. Looks like it is the accelerator cache…]

    If anyone else notices it, then let me know here.

  13. Anita 13

    lprent,

    I was getting the flurry of garbage occasionally last week and the week before. At the time I thought it was something to do with the network connection I have when I’m in Palmerston North (which is slower and more temperamental than at home or any other working-away venue I’ve been at recently).

    I’ll keep an eye out for it and stop assuming it’s the net gods punishing me for going to an inland town 🙂

    Yeah, spring/summer colds are awful, they lull you into a false sense of security and then leap on you. Good on you for working through it tho, keeping systems up through piles of tissues is a definite plus on the ledger 🙂

    [edit – the garbage just came back and I’m in sunny Wellington on a good net connection, I shall email you a screenshot (cos what you really want is garbage 🙂 ]

  14. lprent 14

    Ok that looks like WP Super Cache (installed 5 weeks ago). I’ll have a read of the code later in the week. It usually goes away after a wee while.

    In the meantime I’ll dial back the params ie trade CPU for reliability and see if that makes a difference.

Recent Comments

Recent Posts

  • Police partnership programme with Fiji launched
    A new partnership programme between the New Zealand Police and Fiji Police will focus on combatting transnational organised crime and enhancing investigative skills, Prime Minister Jacinda Ardern announced on the first day of her visit to Fiji. The programme will see: ·       New Zealand Institute of Environmental Science and Research ...
    BeehiveBy beehive.govt.nz
    10 hours ago
  • Joint statement from Prime Minister Ardern and Prime Minister Bainimarama
    Prime Minister Jacinda Ardern and Prime Minister Josaia Voreqe Bainimarama met today in Suva, and renewed their commitment to continue to strengthen Fiji-New Zealand relations on a foundation of shared values and equal partnership. The Prime Ministers acknowledged the kinship between Fijians and New Zealanders, one that has endured over ...
    BeehiveBy beehive.govt.nz
    10 hours ago
  • $19.9 million from PGF for Kawerau
    A $19.9 million investment from the Provincial Growth Fund will help develop essential infrastructure for an industrial hub in the Bay of Plenty town of Kawerau, Regional Economic Development Minister Shane Jones says. “The funding will go to three projects to further develop the Putauaki Trust Industrial Hub, an industrial ...
    BeehiveBy beehive.govt.nz
    15 hours ago
  • PGF funds Mahia roading package
    The Provincial Growth Fund is investing $8.3 million on a roading package for Mahia that will lead to greater and wider economic benefits for the region and beyond, Under Secretary for Regional Economic Development Fletcher Tabuteau announced at an event in Mahia today. The $8.3 million announced consists of: $7 ...
    BeehiveBy beehive.govt.nz
    16 hours ago
  • 18,400 children lifted out of poverty
    Prime Minister Jacinda Ardern has welcomed new reporting showing the Coalition Government is on track to meet its child poverty targets, with 18,400 children lifted out of poverty as a result of the Families Package.   Stats NZ has released the first set of comprehensive child poverty statistics since the Government ...
    BeehiveBy beehive.govt.nz
    17 hours ago
  • 20,000 more Kiwi kids on bikes
    Associate Minister of Transport Julie Anne Genter today announced that Bikes in Schools facilities have been rolled out to 20,000 more kiwi kids under this Government. She made the announcement at the opening of a new bike track at Henderson North School in Auckland. “Bikes in Schools facilities give kids ...
    BeehiveBy beehive.govt.nz
    18 hours ago
  • Benefit settings rise in line with wages as of 1 April
    Benefit settings rise in line with wages as of 1 April   Main benefits will increase by over 3 percent, instead of 1.66 percent, on 1 April with the Government’s decision to annually adjust benefit rates to increases in the average wage. The Minister for Social Development, Carmel Sepuloni, said ...
    BeehiveBy beehive.govt.nz
    2 days ago
  • Foreign and Trade Ministers to lead business delegation to India
    Strengthening New Zealand’s political and business ties with India will be the focus of Foreign Affairs Minister Winston Peters’ and Trade and Export Growth Minister David Parker’s visit to India this week. The Ministers are co-leading a high level business delegation to India to support increased people and economic engagement ...
    BeehiveBy beehive.govt.nz
    2 days ago
  • Minister champions more Pacific in STEM – Toloa Awards
    The Minister for Pacific Peoples, Aupito William Sio continues to champion for greater Pacific participation in STEM (Science, Technology, Engineering and Mathematics) careers with the announcement of the Toloa Awards, with 8 recipients of the Toloa Community Fund and 13 Toloa Tertiary Scholarships. “The Toloa Programme encourages more Pacific peoples ...
    BeehiveBy beehive.govt.nz
    2 days ago
  • Submission period for whitebait consultation extended
    Conservation Minister Eugenie Sage has extended the date for people to have their say on proposed changes to improve management of whitebait across New Zealand.   Submissions were due to close on 2 March 2020 but will now remain open until 9am on Monday 16 March 2020.   “I have ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • New international protection for frequent fliers
    The endangered toroa/Antipodean albatross has new international protection for its 100,000km annual migration, thanks to collaborative efforts led by New Zealand, Australia and Chile.   Today, 130 countries agreed to strictly protect Antipodean albatross at the Conference of Parties on the Convention on the Conservation of Migratory Species of Wild ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Government to regulate vaping
      No sales to under-18-year-olds No advertising and sponsorship of vaping products and e-cigarettes No vaping or smokeless tobacco in smokefree areas Regulates vaping product safety comprehensively, - including devices, flavours and ingredients Ensure vaping products are available for those who want to quit smoking   Vaping regulation that balances ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Justice Minister represents New Zealand at Berlin nuclear disarmament summit
    Justice Minister Andrew Little will travel to Berlin tomorrow to represent New Zealand at a high-level summit on nuclear disarmament. This year, the Nuclear Non-Proliferation Treaty (NPT) celebrates 50 years since it entered into force. “New Zealand’s proud record and leadership on nuclear disarmament is unwavering, so it’s important we are present ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Prime Minister to visit Fiji and Australia
    Prime Minister Jacinda Ardern will visit two of New Zealand’s most important Pacific partners, Fiji and Australia, next week. The visit to Fiji will be the first by a New Zealand Prime Minister in four years and comes during the 50th anniversary of Fijian independence and diplomatic relations between our ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Next steps in Criminal Cases Review Commission announced
    Justice Minister Andrew Little and New Zealand First MP Darroch Ball, have today announced the appointment of the Chief Commissioner of the Criminal Cases Review Commission (CCRC), the location, and the membership of the Establishment Advisory Group. Colin Carruthers QC has been appointed Chief Commissioner of the CCRC for an ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • Horticultural Ahuwhenua Trophy finalists announced
    Māori Development Minister Hon Nanaia Mahuta and Agriculture Minister Hon Damien O’Connor co-announced the first horticultural finalists for the Ahuwhenua Trophy celebrating excellence in the Māori agricultural sector.  The three finalists are Ngai Tukairangi Trust from Mt Maunganui, Otama Marere Trust from Tauranga, and Hineora Orchard Te Kaha 15B Ahuwhenua ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • New support for students with dyslexia
    A new kete of resources to strengthen support for students with dyslexia will provide extra tools for the new Learning Support Coordinators (LSCs) as they start in schools, Associate Education Minister Tracey Martin announced today. The Minister launched the kete in Wellington this morning, at the first of three induction ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • Rental reforms progress to select committee stage
    The Government continues to make progress on a fairer and more secure rental market for renters and landlords with the First Reading of the Residential Tenancies Amendment Bill and its referral to the Social Services and Community Select Committee.  “Now is the opportunity for landlords, tenants and others who want ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • Papua New Guinea Prime Minister to visit New Zealand
    Papua New Guinea’s Prime Minister Hon James Marape will visit New Zealand from 21-25 February, Prime Minister Jacinda Ardern announced today. “New Zealand and Papua New Guinea have a warm and friendly relationship. I look forward to welcoming Prime Minister Marape here and strengthening the relationship between our two countries,” ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Free school lunches served up to thousands
    Thousands of children have begun receiving a free lunch on every day of the school week, Prime Minister Jacinda Ardern said. The Government’s free and healthy school lunch programme is under way for 7,000 students at 31 schools in Hawke’s Bay / Tairāwhiti and Bay of Plenty / Waiariki, extending ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Social Wellbeing Agency replaces Social Investment Agency with new approach
    The Minister for Social Development Carmel Sepuloni today announced a new approach that continues to broaden the Government’s social sector focus from a narrow, investment approach to one centred on people and wellbeing. Minister Sepuloni said redefining the previous approach to social investment by combining science, data and lived experience ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Government to strengthen protections for whistleblowers
    The Government is strengthening the Protected Disclosures Act to provide better protection for whistle blowers, Minister of State Services Chris Hipkins said today. “The Protected Disclosures Act is meant to encourage people to speak up about serious wrongdoing in the workplace and protect them from losing their jobs or being ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • PM speech at Parliamentary Chinese New Year celebration 2020
    Nǐn hǎo (Hello in Mandarin). Xīn Nián Kuài Lè (Happy New Year in Mandarin) Néi Hóu (Hello in Cantonese). Sun Nin Fai Lok (Happy New Year in Cantonese) Tēnā koutou, tēnā koutou, tēnā koutou katoa. Thank you for your invitation to attend this celebration today. I would like to acknowledge ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • IPANZ Annual Address
    Kia ora. Ngā mihi nui ki a koutou katoa. Nau mai haere mai ki te Whare Pāremata. E ngā mana whenua ki tēnei rohe Taranaki Whānui, Te Upoko o Te Ika, Ngāti Toa Rangatira, Ngāti Raukawa – kei te mihi, kei te mihi, kei te mihi. E ngā mana, e ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • 2020 IPANZ Annual Address
    Kia ora. Ngā mihi nui ki a koutou katoa. Nau mai haere mai ki te Whare Pāremata. E ngā mana whenua ki tēnei rohe Taranaki Whānui, Te Upoko o Te Ika, Ngāti Toa Rangatira, Ngāti Raukawa – kei te mihi, kei te mihi, kei te mihi. E ngā mana, e ngā ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Tougher penalties for gun crime a step closer
    Tougher penalties for gun crime are a step closer with the passage of firearms reform legislation through another stage in Parliament. The Arms Legislation Bill has tonight passed its Second Reading. “The changes have one objective - to prevent firearms falling into the wrong hands,” said Police Minister Stuart Nash. ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Arms Legislation Bill: Second Reading
    Introduction Mr Speaker We all know why we are here today. It has been a long journey. The journey did not actually begin on 15 March 2019. It began on 30 June 1997. Almost 23 years ago, Justice Sir Thomas Thorp told us what was wrong with our firearms legislation. ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • New era for vocational education
    The Government’s work to put trades and vocational education back on the agenda took another major step forward today with the passing of the Education (Vocational Education and Training Reform) Amendment Bill, Education Minister Chris Hipkins said. “This is a watershed day for trades and vocational education. These law changes formalise ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Bill to Amend the Greater Christchurch Regeneration Act
    Speeding up the return of Christchurch regeneration activities to local leadership is behind the Greater Christchurch Regeneration Amendment Bill introduced to Parliament today by Minister Megan Woods. “As we approach nine years since the February 2011 earthquake in Canterbury, and with the transition to local leadership well underway, the time ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Milford Track to partly reopen after storm damage
    Hundreds of New Zealanders and international visitors will be able to get back out into nature with the Milford Track partially reopening next week, after extensive assessments and repairs, the Minister of Conservation Eugenie Sage announced today. The popular Great Walk has been closed since 3 February after an extreme ...
    BeehiveBy beehive.govt.nz
    7 days ago
  • Government drives low-emissions transport momentum
    Up to 110 new EV chargers nationwide in cities and regions 50 electric vehicles for ride-sharing The Government is helping deliver more infrastructure and options for low emissions transport through new projects, Energy and Resources Minister Dr Megan Woods says. Tauranga, Nelson, Levin, New Plymouth and Oamaru are just some ...
    BeehiveBy beehive.govt.nz
    7 days ago
  • Kiwis better off under Coalition Government
    New Zealanders are increasingly better off under this Government as wages rise and families have more disposable income, Finance Minister Grant Robertson says. Stats NZ reported today that average household disposable incomes after housing costs rose 4.9% in 2019. This was the highest rise in four years and came as ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Another step towards restoring rights for screen production workers
    All New Zealanders need to have their voices heard at work to ensure we have an inclusive and productive economy. Today we introduce a Bill to do this for workers in the New Zealand screen industry, Workplace Relations and Safety Minister Iain Lees-Galloway says. “The Screen Industry Workers Bill will ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Enhanced Taskforce Green for Southland and South Otago
    The Government has announced further help for the Southland and Otago regions to speed up recovery efforts from the floods.  “I’ve approved Enhanced Taskforce Green (ETFG), making $500,000 available to help with the clean-up in Fiordland, Southland, and the Clutha district in Otago,” Minister for Social Development Carmel Sepuloni said.  ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Employers and Industry take the lead to connect students to vocational education
    Following the announcement that more than 340 schools will be funded to run events promoting vocational education, the Government has announced it will fund a further 257 events to be run by employers and industry. “These industry-run events will allow more than 30,000 students to connect with more than 2,000 ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Rental reforms a step closer with the introduction of the Residential Tenancies Amendment Bill
    Today the Government is making progress on a fairer and more secure rental market for renters and landlords with the introduction of the Residential Tenancies Amendment Bill in Parliament.  “This Bill includes a series of reforms to improve the wellbeing of the 609,700 households that live in rented homes, and ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Biosecurity Minister announces world first eradication of pea weevil
    A Government programme to wipe out pea weevil has achieved a world first, with Biosecurity Minister Damien O’Connor today announcing the successful eradication of the noxious pest from Wairarapa. This means the nearly four-year ban on pea plants and pea straw was lifted today. Commercial and home gardeners can again grow ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Temporary Accommodation Service activated for Southland flooding
    Southland residents hit by flooding caused by heavy rainfall can now access help finding temporary accommodation with the Government activating the Temporary Accommodation Service, Minister of Civil Defence Peeni Henare announced today. “The Temporary Accommodation Service (TAS) has been activated by the Ministry of Business, Innovation and Employment to help ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Bridges: Over-hyped and under-delivered
    “Is that it?” That’s Finance Minister Grant Robertson’s response to Simon Bridges’ much-hyped economic speech today. “Simon Bridges just gave the most over-hyped and under-delivered speech that I can remember during my time in politics,” Grant Robertson said. “It’s not surprising. Simon Bridges literally said on the radio this morning ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Police to trial eye in the sky in Christchurch
    A trial deployment of the Police Eagle helicopter in Christchurch will test whether the aircraft would make a significant difference to crime prevention and community safety. “The Bell 429 helicopter will be based in Christchurch for five weeks, from 17 February to 20 March,” said Police Minister Stuart Nash. “The ...
    BeehiveBy beehive.govt.nz
    1 week ago