BEIJING - Yahoo Inc. is shutting down its office in China, a move that will eliminate 200 to 300 jobs, according to a person with knowledge of the matter.

The Web portal, which has been consolidating offices and trimming staff around the world, told employees based in Beijing that it will close the site, Yahoo said in a statement on Wednesday.

Yahoo had about 12,500 workers worldwide at the end of 2014. While the company didn't say how many would be affected in China, it employed 200 to 300 people there, said the person, who asked not to be named because the number isn't being disclosed publicly.

"We are constantly making changes to align resources, and to foster better collaboration and innovation across our business," Yahoo said in the statement. "We currently do not offer local product experiences in Beijing but the office has served as a research and development center."

Yahoo is looking for new ways to trim expenses as it comes under pressure from investors, such as Starboard Value LP, which has called for cost-saving measures. Chief executive Marissa Mayer said in January the company has focused on efficiency by keeping its employee numbers little changed even as it invested in products and made acquisitions that added staff at the portal, whose revenue growth has stalled since 2008.

"An R&D facility like this is a huge cost, and for a company as weak as Yahoo is now, it doesn't make sense," said Shaun Rein, managing director of China Market Research in Shanghai. "Yahoo doesn't have significance in China. Yahoo can't really recruit top people and Chinese firms are not going to advertise on Yahoo."

advertisement | advertise on newsday

For Yahoo, based in Sunnyvale, California, the exit closes a chapter on a sometimes difficult history in China. Executives came under criticism from human-rights activists and U.S. lawmakers after the company turned over information to the Chinese government on journalist Shi Tao, who was later sentenced to 10 years in prison.

Yahoo sold its Chinese operations to Alibaba Group Holding Ltd. in 2005.

Last month, Yahoo cut about 1 percent of its workforce, or about 125 people, including editorial staff in Canada. The company also closed its office in Amman, Jordan, and eliminated about 400 positions at its site in Bangalore, India, in recent months.

Yahoo shares have gained 13 percent in the past year, buoyed in part by the company's stake of about 15 percent in Alibaba, China's largest e-commerce company. In January, Mayer unveiled plans for Yahoo to spin off its Alibaba holdings, which are valued at more than $32 billion.

So far, Yahoo is keeping its $8 billion stake in Yahoo Japan Corp.

The closing of the China office wasn't related to any government concerns, said the person familiar with the plan. The move was reported earlier by the South China Morning Post.

Yahoo's move is the latest in a series of retrenchments by U.S. technology companies operating in China. Last month, gamemaker Zynga Inc. said it will close its Beijing office, terminating 71 employees.

Microsoft said in December it was shutting phone factories in Beijing and Dongguan as part of a consolidation of its Asia manufacturing in Vietnam.