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

  • Report into Iain Lees-Galloway’s expenditure
    A report undertaken by Ministerial Services into Iain Lees-Galloway’s ministerial expenditure has found no evidence of any inappropriate transactions or spending. Ministerial Services undertook a line by line review of all his expenditure, including staff and spouse expenses for the period 1 January 2019 to 30 June 2020.  “I commissioned ...
    BeehiveBy beehive.govt.nz
    1 hour ago
  • Managed isolation charges to start 11 August
    Managed isolation charges for returnees will come into force from 12.01am Tuesday 11th August, after they passed their last cabinet milestone today, Housing Minister Megan Woods said. “The new charging system balances the rights of New Zealanders to return home and helps reduce pressure on the managed isolation and quarantine ...
    BeehiveBy beehive.govt.nz
    6 hours ago
  • Update on New Zealand and the Cook Islands travel bubble
    The Prime Minister of New Zealand Jacinda Ardern and the Prime Minister of the Cook Islands Henry Puna have welcomed the completion of phase one in the establishment of a travel bubble between New Zealand and the Cook Island. Negotiations on the text of an ‘Arrangement to Facilitate Quarantine-Free Travel ...
    BeehiveBy beehive.govt.nz
    8 hours ago
  • One-stop ‘jobs and training’ shop goes live
    The Government has launched a new online, phone and onsite service to help New Zealanders connect to a range of employment support and products for workers and businesses affected by COVID-19, announced Minister of Education Chris Hipkins and Minister for Social Development Carmel Sepuloni. Connected.govt.nz is a one-stop-shop for jobseekers, ...
    BeehiveBy beehive.govt.nz
    10 hours ago
  • MSD security guards to be paid Living Wage
    Security guards contracted to the Ministry of Social Development will be paid at least the Living Wage from next month supporting the Government’s commitment towards fair pay and employment conditions, announced Minister for  Social Development Carmel Sepuloni.   “MSD was  among the first government agencies to pay its employees the living ...
    BeehiveBy beehive.govt.nz
    13 hours ago
  • New strategy to ensure nature thrives
    The Minister of Conservation Eugenie Sage today launched Te Mana o te Taiao, the Aotearoa New Zealand Biodiversity Strategy - a way forward that envisions Aotearoa New Zealand as a place where ecosystems are healthy and resilient, and people embrace the natural world. “Many of New Zealand’s plants and wildlife species ...
    BeehiveBy beehive.govt.nz
    14 hours ago
  • Provider Languages Fund will support Pacific Wellbeing approach
    “Pacific languages, cultures and identity are essential to the health, wellbeing and lifetime success of our Pacific peoples and their communities in Aotearoa. The strength and resilience of Pacific Aotearoa is not only vital to their own prosperity but integral to the prosperity of all New Zealanders, and is particularly ...
    BeehiveBy beehive.govt.nz
    14 hours ago
  • COVID-19: More funding for schools and boost to construction sector
    ·       $38 million to help schools cover unexpected costs related to COVID-19 ·       $69 million upgrade for online learning ·       $107 million contingency funding to support school construction suppliers facing additional costs due to the lockdown. The Government is releasing $214 million from the COVID-19 response and recovery fund to ...
    BeehiveBy beehive.govt.nz
    14 hours ago
  • Stay safe on the tracks – Rail Safety Week
    Despite the Government installing safety upgrades around the country, people should still take care around rail crossings, said Transport Minister Phil Twyford launching Rail Safety Week. Phil Twyford said installing safety infrastructure is crucial, but we are encouraging people to be more careful around trains too. “We’re making good progress ...
    BeehiveBy beehive.govt.nz
    15 hours ago
  • Government backs Manawatū social housing project
    The Government is providing a cash injection to help Palmerston North City Council complete a programme to provide 78 social housing units for vulnerable tenants. The $4.7 million to build 28 units in the Papaioea Place redevelopment comes from the $3 billion set aside for infrastructure in the Government’s COVID-19 ...
    BeehiveBy beehive.govt.nz
    18 hours ago
  • Major funding boost for Predator Free Banks Peninsula
    A pest free Banks Peninsula/Te Pātaka o Rākaihautū is one step closer with a $5.11 million boost to accelerate this project and create jobs, announced Conservation Minister Eugenie Sage in Canterbury today. “This is a game changer for this ambitious project to restore the native wildlife and plants on Ōtautahi/Christchurch’s doorstep ...
    BeehiveBy beehive.govt.nz
    2 days ago
  • Major investment for indoor sports in Hawke’s Bay
    A Government grant of $6.4 million will expand the Pettigrew Arena in Taradale with new indoor courts of national standard. “The project is likely to take 18 months with approximately 300 people employed through the process,” Grant Robertson said. “The expansion will increase the indoor court space up to 11 ...
    BeehiveBy beehive.govt.nz
    2 days ago
  • New infrastructure for Far North tourist town
    The Far North tourist destination of Mangonui is to receive Government funding to improve waterfront infrastructure, open up access to the harbour and improve water quality, Infrastructure Minister Shane Jones has announced. A total of $6.5 million from the $3 billion set aside in the COVID-19 Response and Recovery Fund ...
    BeehiveBy beehive.govt.nz
    2 days ago
  • Government remains committed to Women’s Cricket World Cup
    The Government has re-affirmed its commitment to supporting the hosting of the ICC Women’s Cricket World Cup, which the ICC has delayed from 2021 to 2022. “This is obviously a disappointing decision for cricket players and fans around the world and for the White Ferns and their supporters here at ...
    BeehiveBy beehive.govt.nz
    2 days ago
  • Green light for Te Awa River Ride in $220m nationwide cycleways investment
    Cyclists and walkers will now have a safer way to get around Taupō, Tūrangi, and between Hamilton and Cambridge, with funding for shared paths and Te Awa River Ride, Associate Minister of Transport Julie Anne Genter announced today. “The Te Awa River Ride is the latest part of massive growth ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Six major ‘shovel-ready’ cycleways funded in Christchurch
    Six major cycle routes will be completed in Christchurch thanks to funding from the Government’s investment in shovel-ready infrastructure as part of the COVID-19 recovery Associate Minister of Transport Julie Anne Genter announced today. $125 million will be invested to kick-start construction and fund the completion of the following cycleway ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • New Police facilities for Whanganui
    Plans are underway for a brand new state-of-the-art hub for Whanganui’s justice and social agencies, following confirmation the ageing Whanganui Central Police Station is to be replaced. Police Minister Stuart Nash has announced $25 million in new infrastructure spending to improve facilities for the wider community, and for staff who ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Relativity adjustment for Waikato-Tainui and Ngāi Tahu
    An adjustment payment has been made to Waikato-Tainui and Ngāi Tahu under the relativity mechanisms in their 1995 and 1997 Treaty of Waitangi settlements, Minister for Treaty of Waitangi Negotiations Andrew Little announced today. The latest payments to Waikato-Tainui and Ngāi Tahu are $2,700,000 and $2,600,000 respectively to ensure the ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Auckland rail upgrades pick up steam
    Deputy Prime Minister Winston Peters and Transport Minister Phil Twyford today kicked off the start of the Auckland NZ Upgrade Programme rail projects which will support over 400 jobs and help unlock our biggest city. Both ministers marked the start of enabling works on the third main rail line project ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • PGF support for Wairoa creates jobs
    The Provincial Growth Fund (PGF) investment of $3.78 million in Wairoa will create much needed economic stimulus and jobs, Under-Secretary for Regional Economic Development Fletcher Tabuteau announced today. PGF projects announced today include: $200,000 loan to Nuhaka Kiwifruit Holdings Ltd (operated by Pine Valley Orchard Ltd) to increase the productivity ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Public and Māori housing to trial renewable energy technology
    Tenants in public and Māori housing may be benefiting from their own affordable renewable energy in future – a fund to trial renewable energy technology for public and Māori housing has today been announced by Energy and Resources Minister Megan Woods and Associate Minister for Housing (Māori Housing) Nanaia Mahuta. ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • $2.7m for Hokianga infrastructure
    Hokianga will receive $2.7 million to redevelop four of its wharves and upgrade its water supply, Regional Economic Development Minister Shane Jones has announced. Far North District Council will receive $1.8 million from the Provincial Growth Fund for the work on the wharves. “The work will include the construction of ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • New fund to support housing and construction sector
    A $350 million Residential Development Response Fund is being established to support the residential construction sector and to minimise the economic impact from COVID-19, the Housing Minister Dr Megan Woods has announced. “The Residential Development Response Fund will help to progress stalled or at-risk developments that support our broader housing ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Government investment to boost Auckland’s community recycling network
    As part of a broader plan to divert waste from landfill, the Government today announced $10.67 million for new infrastructure as part of the Resource Recovery Network across the Auckland region. “This key investment in Auckland’s community recycling network is part of the Government’s Infrastructure Reference Group ‘shovel ready’ projects ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Te Papa transformation starts at Cameron Road
    The Government is investing $45 million in the first stage of an ambitious urban development project for Tauranga that will employ up to 250 people and help the region grow, Urban Development Minister Phil Twyford announced today. Phil Twyford says the funding has been allocated out of the $3 billion ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Low-emissions options for heavy transport a step closer
    Getting low-emission trucks on the road is a step closer with investment in infrastructure to support hydrogen vehicles, the Energy and Resources Minister Megan Woods has announced. The Infrastructure Reference Group has provisionally approved $20 million for New Plymouth company Hiringa Energy to establish a nationwide network of hydrogen-fuelling stations. ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • New training centre to upskill workers
    A new trades training centre to upskill the local workforce will be built in the South Waikato town of Tokoroa through funding from the Government’s COVID-19 Response and Recovery Fund, Education Minister Chris Hipkins and Regional Economic Development Minister Shane Jones have announced. The Government will contribute $10.84 million from ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Subsequent children legislation to change
    The Government has agreed to repeal part of the Oranga Tamariki Act subsequent children provisions, Minister for Children Tracey Martin announced today. “There are times when children need to go into care for their safety – the safety and care of children must always be paramount,” Minister Martin said. “But ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Funding to expand mental health support for Pacific peoples
    A $1.5 million boost to grow primary mental health and addiction services for Pacific peoples in Auckland, Hamilton and Canterbury will lead to better outcomes for Pacific communities, Associate Health Minister Jenny Salesa says.  Pasifika Futures has received funding to expand services through The Fono, Aotearoa New Zealand’s largest by ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Funding boost for sustainable food and fibre production
    Twenty-two projects to boost the sustainability and climate resilience of New Zealand’s food and fibres sector have been announced today by Agriculture Minister Damien O’Connor. The $18m funding will deliver practical knowledge to help farmers and growers use their land more sustainably, meet environmental targets, remain prosperous, and better understand ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Mature Workers Toolkit launched on business.govt.nz
    Employment Minister Willie Jackson welcomes an initiative that assists employers to get mature workers into New Zealand small businesses. The disadvantages that older people face in the workplace was highlighted in the whole of Government Employment Strategy.  In order to address this, a Mature Workers Toolkit has been developed and ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Trans-Tasman cooperation in a COVID-19 world
    New Zealand and Australia reaffirmed today the need for the closest possible collaboration as they tackle a global environment shaped by COVID-19, Foreign Affairs Minister Winston Peters said. “In these challenging times, our close collaboration with Australia is more vital than ever,” said Mr Peters. Mr Peters and his Australian ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Pike recovery efforts now in unexplored territory
    The recovery and forensic examination of the loader driven by survivor Russell Smith means the underground team are now moving into an area of the Pike River Mine that has not been seen since the explosion, Minister Responsible for Pike River Re-entry Andrew Little said. “The fifth and last robot ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Government confirms CovidCard trial to go ahead
    The Government has confirmed a community-wide trial of CovidCard technology as it explores options for COVID-19 contact tracing. “Effective contact tracing is a vital part of the COVID-19 response,” Minister of Health Chris Hipkins said. “While manual processes remain the critical component for contact tracing, we know digital solutions can ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Enhanced process for iwi aquaculture assets
    The government is proposing changes to aquaculture legislation to improve the process for allocating and transferring aquaculture assets to iwi. Fisheries Minister Stuart Nash has introduced the Maori Commercial Aquaculture Claims Settlement Amendment Bill to Parliament. It proposes a limited new discretionary power for Te Ohu Kaimoana Trustee Limited (ToKM). ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Bill introduced to fix National’s Family Court reform failures
    The Minister of Justice has today introduced the Family Court (Supporting Children in Court) Legislation Bill – the next step in the ongoing programme of work to fix the failed 2014 Family Court reforms led by then Justice Minister Judith Collins.  The Bill arises from the report of the Independent ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • DOC takes action to adapt to climate change
    A new Department of Conservation (DOC) action plan tackles the impacts of climate change on New Zealand’s biodiversity and DOC managed infrastructure including tracks, huts and cultural heritage. Minister of Conservation Eugenie Sage says extreme weather events around the country have really brought home our vulnerability to changing weather patterns. ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Reduced international Antarctic season commences
    A heavily scaled back international Antarctic season will commence this week, Foreign Affairs Minister Winston Peters and Research, Science and Innovation Minister Megan Woods have confirmed. “Antarctica is the only continent that is COVID-19 free,” Mr Peters said. “Throughout the global pandemic, essential operations and long-term science have continued at ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • New high performance sports hub for Upper Hutt
    The Government is providing up to $30 million to help fund the NZ Campus of Innovation and Sport in Upper Hutt - an investment that will create 244 jobs. “The sports hub is designed to be a world-leading shared service for a range of sports, offering the level of facilities ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Govt keeps projects on road to completion
    Transport Minister Phil Twyford announced today transport projects currently in construction will continue at pace due to extra Government support for transport projects to mitigate the impact of COVID-19. To keep the $16.9 billion 2018-21 National Land Transport Programme going the Government has allocated funding from the COVID Response and ...
    BeehiveBy beehive.govt.nz
    5 days ago